define(function() {
    return ['$scope','$state','$rootScope','$timeout','$location','$interval', function($scope,$state, $rootScope,$timeout, $location,$interval) {

        $(function() {

            $(".BGP li").on("click", function() {
                let i = $(this).index();//当前索引值
                $('.BGP li').removeClass('red');
                $(this).addClass('red');
                $(".contBG").css('display','none');
                $(".contBG"+(i+1)).css('display','block');

                // 标题栏 实时更新
                let text = $(this).text();
                $('#titlePage').text(text);
                $('.titleBG').text(text);

            })
        });

        $scope.goBusinessGuide = function() {
            $state.go('content.businessGuide');
        }
        $scope.$apply();
    }];
});